﻿using System;
using Framework;

namespace Enterprise.Admin.Handle
{
    public partial class GetColumnDetailJson : AdminBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var id = Fq("Id").SafeToInt();
            var columnService = new ColumnService();
            var record = columnService.GetById(id);
            object result = new
            {
                CoColumnId = record["CoColumnId"].SafeToInt(),
                CoName = record["CoName"].SafeToString(),
                CoParentName = record["CoParentName"].SafeToString(),
                CoSort = record["CoSort"].SafeToInt(),
                CoNameEn = record["CoNameEn"].SafeToString()
            };
            Json(result);
        }
    }
}